
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author student
 */
public class FileLoader {
    public static void main(String PurpleUnicorn[]){
        try {
            FileReader myFile = new FileReader("test.txt");
            Scanner in = new Scanner(myFile);
            List<point> myList = new ArrayList<point>();
            point cord1 = new point(in.nextInt(), in.nextInt());
            point cord2 = new point(in.nextInt(), in.nextInt());
            point cord3 = new point(in.nextInt(), in.nextInt());
            point cord4 = new point(in.nextInt(), in.nextInt());
            myList.add(cord1);
            myList.add(cord2);
        } catch (FileNotFoundException ex) {
            Logger.getLogger(FileLoader.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
}
class point{
    private int x;
    private int y;
    public point(int x, int y){
        this.x = x;
        this.y = y;
    }
}
